layui.define(['layer','form','http'], function (exports) {
    var form = layui.form();
    form.verify({
        parentId: [
            /^\+?[0-9]*$/,
            '父菜单不能为空'
        ],
        text: [
            /^[\S]+/,
            '名称不能为空'
        ],
        icon:[
            /^[\S]+/,
            '图标不能为空'
        ],
        url:[
            /^[\S]+/,
            '菜单地址不能为空'
        ],
        sort:[
            /^\+?[0-9]*$/,
            '序号不能为空且必须为数字'
        ],
        permission:[
            /^[\S]+/,
            '权限表达式不能为空'
        ]
    });
    exports('../app/admin/menu-form', {});
});
